package com.test.pattern.state.before;

/**
 * @ClassName: Client
 * @description:
 * @author: Mr du
 * @create: 2024-03-11 23:04
 */
public class Client {

    public static void main(String[] args) {
        //创建电梯对象
        ILift lift = new Lift();
        //设置当前电梯运行状态
        lift.setState(ILift.STOPING_STATE);//电梯是停止的
        lift.open();//开门
        lift.close();//关门
        lift.run();//运行
        lift.stop();//停止
    }
}
